
#include <QDebug>
#include "splitter.h"



void IndexedContainer::replaceWidget(QWidget* old_widget, QWidget *new_widget)
{
    int index = indexOf(old_widget);
    insertWidget(index,new_widget);
    removeWidget(old_widget);
}







